<div class="pagination"> 
#if(totalPages>1)    
    #if(hasPrevious)
        <li><a href="#(pattern)#(previousPageNumber)" class="page_prev">上一页</a></li>
    #else
        <li><a href="javascript:;" class="page_prev on">上一页</a></li>
    #end
    #for(segmentPageNumber : segment)
        #if(segmentPageNumber != pageNumber)
            <li><a href="#(pattern)#(segmentPageNumber)">#(segmentPageNumber)</a></li>
        #else
            <li><a href="javascript:;" class="page_num on">#(segmentPageNumber)</a></li>
        #end
    #end
    #if(hasNext)
        <li><a href="#(pattern)#(nextPageNumber)" class="page_next">下一页</a></li>
    #else
        <li><a href="javascript:;" class="page_next on">下一页</a></li>
    #end
#end 
<li><span class="pageinfo">共 <strong>#(contentPage.totalPage)</strong>页<strong>#(contentPage.totalRow)</strong>条记录</span></li>
</div>